package com.ruoyi.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备配置列表对象 device_config
 * 
 * @author ruoyi
 * @date 2022-12-12
 */
public class DeviceConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 设备序号 */
    @Excel(name = "设备序号")
    private String deviceNo;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;

    /** 所属班组 */
    @Excel(name = "所属班组")
    private String team;

    /** 分组号 */
    @Excel(name = "分组号")
    private Long teamNo;

    /** 模块类型 */
    @Excel(name = "模块类型")
    private String moduleType;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ip;

    /** 通讯id */
    @Excel(name = "通讯id")
    private String communicateId;

    /** 出厂编号 */
    @Excel(name = "出厂编号")
    private Long factoryNo;

    /** 安装时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date setupTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceNo(String deviceNo) 
    {
        this.deviceNo = deviceNo;
    }

    public String getDeviceNo() 
    {
        return deviceNo;
    }
    public void setDeviceCode(String deviceCode) 
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() 
    {
        return deviceCode;
    }
    public void setTeam(String team) 
    {
        this.team = team;
    }

    public String getTeam() 
    {
        return team;
    }
    public void setTeamNo(Long teamNo) 
    {
        this.teamNo = teamNo;
    }

    public Long getTeamNo() 
    {
        return teamNo;
    }
    public void setModuleType(String moduleType) 
    {
        this.moduleType = moduleType;
    }

    public String getModuleType() 
    {
        return moduleType;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setCommunicateId(String communicateId) 
    {
        this.communicateId = communicateId;
    }

    public String getCommunicateId() 
    {
        return communicateId;
    }
    public void setFactoryNo(Long factoryNo) 
    {
        this.factoryNo = factoryNo;
    }

    public Long getFactoryNo() 
    {
        return factoryNo;
    }
    public void setSetupTime(Date setupTime) 
    {
        this.setupTime = setupTime;
    }

    public Date getSetupTime() 
    {
        return setupTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceNo", getDeviceNo())
            .append("deviceCode", getDeviceCode())
            .append("team", getTeam())
            .append("teamNo", getTeamNo())
            .append("moduleType", getModuleType())
            .append("deviceType", getDeviceType())
            .append("ip", getIp())
            .append("communicateId", getCommunicateId())
            .append("factoryNo", getFactoryNo())
            .append("setupTime", getSetupTime())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
